package cn.dliyy.warehouse.bean;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

import org.springframework.stereotype.Component;

import cn.dliyy.base.bean.IdEntity;

@Component
@Entity
@Table
public class Warehouse extends IdEntity{
	private static final long serialVersionUID = 1L;
	@NotNull
	@Size(min = 2, max = 20)
	@Column
	private String name;
	@NotNull
	@Column
	@Size(min = 0, max = 10)
	private String code;
	@Column
	@Size(min = 0, max = 45)
	private String address;
	@Column
	private String used;

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public String getUsed() {
		return used;
	}

	public void setUsed(String used) {
		this.used = used;
	}
}
